<?php
	error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
	require_once 'include/inc.config.php';
	require_once WACT_ROOT.'common.inc.php';
	require_once WACT_ROOT.'controller/pathinfo.inc.php';

    require_once APP_CTRL_ROOT . 'adm/admin_controller.php';
    require_once 'model/common/rotation.php';   
    require_once APP_CTRL_ROOT . 'adm/site_layout/rotation/index.page.php';
    require_once APP_CTRL_ROOT . 'adm/site_layout/rotation/edit.page.php';
    require_once APP_CTRL_ROOT . 'adm/site_layout/rotation/delete.page.php';
    require_once APP_CTRL_ROOT . 'adm/site_layout/rotation/create.page.php';



	class MyAdminRootController extends RootAdminController {
	//class MyAdminRootController extends PathInfoDispatchController {

		function MyAdminRootController() {
        	parent::RootAdminController();
            //parent::PathInfoDispatchController();

            $this->addChild('index',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/rotation/index.page.php|RotationIndexPage'));
			$this->addChild('edit',   new Handle(APP_CTRL_ROOT . 'adm/site_layout/rotation/edit.page.php|RotationEditPage'));
            $this->addChild('delete',   new Handle(APP_CTRL_ROOT . 'adm/content/rotation/delete.page.php|RotationDeletePage'));
			$this->addChild('create',   new Handle(APP_CTRL_ROOT . 'adm/content/rotation/create.page.php|RotationCreatePage'));


            $this->setDefaultChild('index');

		}

	}

    $Front =& new MyAdminRootController();
	$Front->start();


?>